﻿using System;
using System.Collections.Generic;
using System.Data.Objects.DataClasses;
using System.Linq;
using System.Text;
using Super.Entities;
using Super.Infrastructure;

namespace Super.DomainService
{
    public class BaseService<T> where T : EntityObject, new()
  {
      private readonly DbContextAdapter _adp;
      public Repository<T> Repository;
     
      /// <summary>
      /// 构造函数
      /// </summary>
      public BaseService(DbContextAdapter adp)
      {
          _adp = adp;
          Repository = new Repository<T>(_adp);
      }

    }
}
